import request from '@/utils/request'

// 列表
export function listData(params) {
  return request({
    url: `/charm/list`,
    method: 'post',
    params
  })
}

// 添加
export function addCharm(data) {
  return request({
    url: `/charm/add`,
    method: 'post',
    data
  })
}

// 删除
export function delCharm(data) {
  return request({
    url: `/charm/del`,
    method: 'post',
    data
  })
}

// 修改
export function editCharm(data) {
  return request({
    url: `/charm/save`,
    method: 'post',
    data
  })
}

// 详情
export function detailCharm(data) {
  return request({
    url: `/charm/detail`,
    method: 'post',
    data
  })
}
